package com.csnf.student.serive;

import com.csnf.student.dao.StudentDAO;
import com.csnf.student.entity.Student;

import java.util.List;

public class StudentService {
    private StudentDAO studentDAO = new StudentDAO();

    public List<Student> getStudentsByPage(int pageNum) {
        return studentDAO.getStudentsByPage(pageNum);
    }

    public int getTotalCount() {
        return studentDAO.getTotalCount();
    }
}
